import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;

public class Test {
    public static void main(String[] args) {
        StackToQueue stack=new StackToQueue();
        stack.push(1);
        stack.push(2);
        int x=stack.peek();
        System.out.println(stack.pop());
    }


    public static void main1(String[] args) {
        MyQueue queue = new MyQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());

    }
}
